package com.sxy.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
@Configuration
//第一种方式：精确书写要扫描包的路径
//@ComponentScan({"com.sxy.service","com.sxy.dao"})
//第二种方式：设置排除过滤器
@ComponentScan(value = "com.sxy",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class))
public class SpringConfig {
}
